//
//  MyRightView.m
//  CarTown
//
//  Created by xionghao on 15/8/6.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "MyRightView.h"

@implementation MyRightView
+(instancetype)right{
    MyRightView *right=[[[NSBundle mainBundle] loadNibNamed:@"RihtButtonView" owner:nil options:nil]lastObject];
    return right;
}
- (IBAction)messageclick:(id)sender {
    [self click:1];
    
}
- (IBAction)settingclick:(id)sender {
    [self click:0];
}
-(void)click:(NSInteger)Tag{
    if ([_clickdelegate respondsToSelector:@selector(clickWithTag:)]) {
        [_clickdelegate clickWithTag:Tag];
    }
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
